package cn.com.xuhx.testService;

import cn.com.xuhx.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class SelectTest {

    @Autowired
    private UserService userService;

    /**
     * 查询总数
     */
    @Test
    public void selectCount(){
        //SELECT COUNT( * ) FROM T_USERS
        int count = userService.count();
        System.out.println(count);
    }
}
